home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Merciful 2
/
Merciful - Disc 2.iso
/
software
/
d
/
dpaintv5_2extras.dms
/
dpaintv5_2extras.adf
/
Macros
/
Shadow.dprx
< prev
Wrap
Text File
|
1994-10-21
|
1KB
|
58 lines
/* DPaint Soft Edge Shadow Macro By Doug Shannon
* (c) 1994 Electronic Arts
*
* Creates a soft edge drop shadow using your current brush
* as a template
*
* To use:
* 1 Position Brush where you want the shadow to fall
* 2 Execute macro through keyboard command
* 3 Set the percentage of Shadow
* 4 Sit back and watch it render!
*
* Note: This macro works best when you have lots of colors for
* The shadow to render with. It works best with the 24bit
* Backing store or ham modes. If results are'nt what you
* hoped for, try increasing the varaible LEVEL, which sets
* How much translucency is used.
*/
level=10 /*This number is the amount of Translucency to use */
Address Dpaint.1
options results
screentofront
/* Memorize current X and Y coords */
getcoord x
x=result
getcoord y
y=result
lockgui
REQUESTnumber PROMPT '"Shadow %:"' TITLE 'Shadow' number 30
trans=result
/* Setup */
COLOR
CLOSESTCOLOR 0 0 0
setFGCOLOR result
settranslucency (100-level)
translucency ON
setspace ntotal 7
/* Render the Shadow */
do i=1 to trans/level
circle x y rad (i*3)
end
/* Set everything back to normal */
DOTTED
MATTE
translucency OFF
Setspace continous
unlockgui